OBJS = ide.o beep.o serial.o 
CFLAGS = -mcmodel=large -fno-builtin -m64 -I ../include -Wall -Werror -g

all: $(OBJS) modules.o 

%.o: %.c
	gcc -c $*.c $(CFLAGS)

modules.o: 
	ld -r -o modules.o $(OBJS)

clear:
	rm *.o

